<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<ui:composition template="/commun_page/template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	>

	<ui:define name="title">
			Modification d'un client
	</ui:define>

	<ui:define name="body">

     	<h:form id="modificationClientForm">     	    	
     		<table >
				<tr>
					<td><h:outputText value="Nom :" /></td>
					<td><h:inputText id="nom" value="#{manager.client.nom}" required="true">
						<f:validateLength minimum="3" /></h:inputText></td>
					<td><h:message for="nom"  errorClass="erreur" /></td>
				</tr>
				<tr>
					<td><h:outputText value="Prenom :" /></td>
					<td><h:inputText id="prenom" value="#{manager.client.prenom}"  required="true" >
						<f:validateLength minimum="3" /></h:inputText></td>
					<td><h:message for="prenom"  errorClass="erreur" /></td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td><h:commandButton value="Enregistrer" action="#{manager.modifierClient}" /></td>
					<td>&nbsp;</td>
				</tr>
			</table>
 		</h:form>
		
		<br />
		<br />
		
		</ui:define>
</ui:composition>

